const controllers = require("../controllers/order");
const authorization = require('../middleware/authorization');
const adminAuthorization = require('../middleware/adminAuthorization');
module.exports = router => {
    // router.prefix('/');
    //小程序的
    router.get('/order/list', authorization(), controllers.list);
    router.post('/order', authorization(), controllers.create);

    //管理品台的
    router.get('/admin/order/list', adminAuthorization(), controllers.adminList);
};
